<?php namespace Phpcmf\Controllers;

/**
 * 二次开发时可以修改本文件，不影响升级覆盖
 */

class Jindu extends \Phpcmf\Home\Module
{

	public function jindu_data_list() {
		$id = \Phpcmf\Service::L('input')->get('id'); //帖子id
		$jindu_data_list = \Phpcmf\Service::M()->table('1_quan_form_jindu_data')->where('tieid', $id)->getAll();
		//循环 $jindu_data_list 
		foreach ($jindu_data_list as $key => $value) {
			$jindu_data_list[$key]['id'] = $value['id'];
			$jindu_data_list[$key]['title'] = htmlspecialchars_decode($value['title']);
			$jindu_data_list[$key]['zhuangtai'] = $value['zhuangtai'];
			$jindu_data_list[$key]['tianjiashijian'] = dr_date($jindu_data_list[$key]['tianjiashijian'], 'm-d-H:i');
			$jindu_data_list[$key]['kaishishijian'] = dr_date($jindu_data_list[$key]['kaishishijian'], 'm-d-H:i');
			$jindu_data_list[$key]['jieshushijian'] = dr_date($jindu_data_list[$key]['jieshushijian'], 'm-d-H:i');

		}
		$this->_json('1', '读取进度数据成功', $jindu_data_list);
	}

}
